package com.mall.model.entity.Ums;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用户收货地址
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "用户收货地址",description = "")
@TableName("ums_address")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UmsAddress implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 用户id */
    @Schema(name = "用户id",description = "")
    private Long userId;
    /** 收件人 */
    @Schema(name = "收件人",description = "")
    private String receiverName;
    /** 收件手机号 */
    @Schema(name = "收件手机号",description = "")
    private String phone;
    /** 省 */
    @Schema(name = "省",description = "")
    private String province;
    /** 市 */
    @Schema(name = "市",description = "")
    private String city;
    /** 区 */
    @Schema(name = "区",description = "")
    private String district;
    /** 详细地址 */
    @Schema(name = "详细地址",description = "")
    private String detail;
    /** 是否为默认地址;0非默认 1默认 */
    @Schema(name = "是否为默认地址",description = "0非默认 1默认")
    private Integer isDefault;
}